﻿
namespace BEGDC.PreContract.DAL
{
    using System;
    using System.Collections.Generic;
    using Castle.ActiveRecord;
    using NHibernate.Expression;


    [ActiveRecord]
    public partial class ReportSearchDefaultMonth : ActiveRecordBase<ReportSearchDefaultMonth>
    {
		#region Const Definition
		
		public const string CONST_ReportSearchDefaultMonthID			= "ReportSearchDefaultMonthID";
		public const string CONST_DefaultMonth							= "DefaultMonth";
		public const string CONST_UpdateDate							= "UpdateDate";

		#endregion
		
        #region Member Variables
        // Primary Key
        private System.Int32 _reportSearchDefaultMonthID;
        
        // Non Key
        private System.Int32 _defaultMonth;
        private Nullables.NullableDateTime _updateDate;

        // Parents
        
        
		

        #endregion

        public ReportSearchDefaultMonth() {
               
        }
        public ReportSearchDefaultMonth(
            System.Int32 defaultMonth
            ,Nullables.NullableDateTime updateDate) : this() {
                
            this._defaultMonth = defaultMonth; 
            this._updateDate = updateDate; 
        }
        
        #region Properties
        // Primary Key        
		
		#if (SQLServer)
        [PrimaryKey]
		#else
		[PrimaryKey(PrimaryKeyType.Native, SequenceName = "SEQ_REPORTSEARCHDEFAULTMONTH_REPORTSEARCHDEFAULTMONTHID")]
		#endif
        public System.Int32 ReportSearchDefaultMonthID {
            get { return this._reportSearchDefaultMonthID; }
            set {  this._reportSearchDefaultMonthID = value; }
        }
        
        // Non Key
        [Property]
        public System.Int32 DefaultMonth {
            get { return this._defaultMonth; }
			set { this._defaultMonth = value; }
        }
        
        [Property]
        public Nullables.NullableDateTime UpdateDate {
            get { return this._updateDate; }
			set { this._updateDate = value; }
        }
        
        
        // Parent Relationships
        // Child Relationships
        
		
        #endregion
		
		// Clone
		public ReportSearchDefaultMonth Clone()
		{
			ReportSearchDefaultMonth newReportSearchDefaultMonth = new ReportSearchDefaultMonth();
			
            newReportSearchDefaultMonth.DefaultMonth = this._defaultMonth; 
            newReportSearchDefaultMonth.UpdateDate = this._updateDate; 
			return newReportSearchDefaultMonth;
		}
    }
}



